package com.linsir.lin.controller.camunda;

import com.linsir.lin.service.CamundaService;
import org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity;
import org.camunda.bpm.engine.repository.Deployment;
import org.camunda.bpm.engine.repository.ProcessDefinition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author ：linsir
 * @date ：Created in 2021/7/6 16:31
 * @description：流程相关接口
 * @modified By：
 * @version: 1.0.0
 */
@RestController
@RequestMapping(value = "/cam/")
public class CamundaController {
    @Autowired
    private CamundaService camundaService;

    @RequestMapping(value = "/depl",method = {RequestMethod.GET,RequestMethod.POST})
    public List<Map<String, String>> deploymentList()
    {
       return camundaService.delopyLog();
    }
}
